﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Drawing;
using System.Diagnostics;
using System.Windows.Forms;

namespace Janus.NorthwindDemo2007
{
	public class ProductsAndOrdersFolder : ApplicationFolder
	{

		private const string cFolderName = "Products And Orders";
        private const string cFolderDescription = "Sản phẩm và đơn hàng";
		public ProductsAndOrdersFolder()
		{
            mFolderDescription = cFolderDescription;
			mFolderName = cFolderName;
			this.mSupportedFeatures = FolderFeatures.None;
			this.ImageKey= "ProductsAndOrders";

            
			this.AddChildFolder(new ProductsFolder());
			this.AddChildFolder(new OrdersFolder());
            this.AddChildFolder(new CategoriesFolder());
		}


		protected override Type GetTypeOfView(ContentViewType viewType)
		{
			switch (viewType)
			{
				case ContentViewType.DashBoard:
					return typeof(ProductsAndOrdersDashboardView);
				default:
					return base.GetTypeOfView(viewType);
			}
		}
	}

} //end of root namespace